package com.topvision.jack.uploadlibrary.greendao;

import java.util.Map;

import org.greenrobot.greendao.AbstractDao;
import org.greenrobot.greendao.AbstractDaoSession;
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.identityscope.IdentityScopeType;
import org.greenrobot.greendao.internal.DaoConfig;

import com.topvision.jack.uploadlibrary.entity.UploadFileEntity;

import com.topvision.jack.uploadlibrary.greendao.UploadFileEntityDao;

// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.

/**
 * {@inheritDoc}
 * 
 * @see org.greenrobot.greendao.AbstractDaoSession
 */
public class DaoSession extends AbstractDaoSession {

    private final DaoConfig uploadFileEntityDaoConfig;

    private final UploadFileEntityDao uploadFileEntityDao;

    public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
            daoConfigMap) {
        super(db);

        uploadFileEntityDaoConfig = daoConfigMap.get(UploadFileEntityDao.class).clone();
        uploadFileEntityDaoConfig.initIdentityScope(type);

        uploadFileEntityDao = new UploadFileEntityDao(uploadFileEntityDaoConfig, this);

        registerDao(UploadFileEntity.class, uploadFileEntityDao);
    }
    
    public void clear() {
        uploadFileEntityDaoConfig.clearIdentityScope();
    }

    public UploadFileEntityDao getUploadFileEntityDao() {
        return uploadFileEntityDao;
    }

}
